<%-- 
    Document   : successful
    Created on : Mar 29, 2013, 1:04:33 PM
    Author     : Farley
--%>


<%@page import="UserManager.Staff"%>
<%@page import="UserManager.Announcement"%>
<%@page import="UserManager.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<title>Ateneo de Davao University - Student Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../../styles/layout.css" type="text/css" />
<link rel="stylesheet" href="../../styles/loginstyle.css" type="text/css" />
</head>
<body id="top">
    <%
    if(session.getAttribute("st_loggedType") == null)
        response.sendRedirect("../../index.jsp");
    else if("1".equals(session.getAttribute("s_isLogged")))
            response.sendRedirect("../../student.jsp");
    else if("Department Head".equals(session.getAttribute("st_loggedType")))
        response.sendRedirect("../../staff-deptHead.jsp");
    else if("Regular".equals(session.getAttribute("st_loggedType")))
        response.sendRedirect("../../staff-regular.jsp");
    else{
        Staff staff = (Staff) session.getAttribute("staffInfo");
        Announcement global = (Announcement) session.getAttribute("globalannouncedate");
    %>
    
<div class="wrapper row1">
  <div id="header" class="clear">
    <div class="fl_left">
      <h1><a href="../../index.jsp"><u><b>Ateneo de Davao University</b></u></a></h1>
      <p><i>Faith in God.</i></p>
    </div>
    <div class="fl_right">
      <ul>
            <li class="last"><a href="#">Welcome, Secretary <%=staff.getSt_FirstName()%> <%=staff.getSt_MI()%>. <%=staff.getSt_LastName()%>!</a></li>
            
      </ul>
      <ul>
        <li><a href="../../staff-regular.jsp">Home</a></li>
        <li><a href="../../addGlobal.jsp" class="active">Make a Campus Announcement</a></li>
        <li class="last"><a href="../../s_logoutServlet">Logout</a></li>
      </ul>
      <form action="#" method="post" id="sitesearch">
        <fieldset>
          <strong>Search:</strong>
          <input type="text" value="Search Our Website&hellip;" onfocus="this.value=(this.value=='Search Our Website&hellip;')? '' : this.value ;" />
          <input type="image" src="../../images/search.gif" id="search" alt="Search" />
        </fieldset>
      </form>
    </div>
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row2">
  <div class="rnd">
    <!-- ###### -->
    <div id="topnav">
      <ul>
        <li><a href="../../index.jsp">Home</a></li>
        <li><a href="#">Academics</a></li>
        <li><a href="#">Admission</a></li>
        <li><a href="#">University Life</a></li>
        <li class="last"><a href="#">Offices</a></li>
      </ul>
    </div>
    <!-- ###### -->
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row3">
  <div class="rnd">
    <div id="container" class="clear">
      
        <!-- MAIN CONTENT -->
	<div id="content">
		<div id="respond">
          <form action="../../addGlobalServlet" method="post">

            <p>
              <label for="global" style="color:royalblue"><b><u>Campus-Wide Announcement</b></u></label>
            </p>
            <p>
              <input type="text" name="g_Title" id="name" size="22" />
              <span style="color:#104E8B"><small>Title of the Announcement</small></span>
            </p>
            <p>
              <textarea name="g_Body" id="comment" cols="100%" rows="10"></textarea>
              <label for="globalAnnouncement" style="display:none;"><small>Announcement</small></label>
            </p>
            <p>
              <input name="submit" type="submit" id="submit" value="Create Announcement" />
              &nbsp;
              <div class="confirmation-box round">Announcement Posted on <%=global.getAddDatePosted()%>.</div>
            </p>
          </form>
		
	</div> <!-- end content -->
        
    
    </div>
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row4">
  <div class="rnd">
    <div id="footer" class="clear">
      <!-- ####################################################################################################### -->
      <div class="fl_left clear">
        <div class="fl_left center"><img src="../../images/demo/worldmap.gif" alt="" /><br />
          <a href="#">Find Us With Google Maps &raquo;</a></div>
        <address>
        8016<br />
        E. Jacinto Street.<br />
        Davao City, Philippines<br />
        1211<br />
        <br />
        Contact No: 0927 794 9612<br />
        Email: <a href="#">faadizon@addu.edu.ph</a>
        </address>
      </div>
      <div class="fl_right">
        <div id="social" class="clear">
          <p>Stay Up to Date With Whats Happening</p>
          <ul>
            <li><a style="background-position:0 0;" href="#">Twitter</a></li>
            <li><a style="background-position:-72px 0;" href="#">LinkedIn</a></li>
            <li><a style="background-position:-142px 0;" href="#">Facebook</a></li>
            <li><a style="background-position:-212px 0;" href="#">Flickr</a></li>
            <li><a style="background-position:-282px 0;" href="#">RSS</a></li>
          </ul>
        </div>
        <div id="newsletter">
          <form action="#" method="post">
            <fieldset>
              <legend>Subscribe To Our Newsletter:</legend>
              <input type="text" value="Enter Email Here&hellip;" onfocus="this.value=(this.value=='Enter Email Here&hellip;')? '' : this.value ;" />
              <input type="text" id="subscribe" value="Submit" />
            </fieldset>
          </form>
        </div>
      </div>
      <!-- ####################################################################################################### -->
    </div>
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper">
  <div id="copyright" class="clear">
    <p class="fl_left">Copyright &copy; 2013 - All Rights Reserved - <a href="#">Ateneo de Davao University</a></p>
    <p class="fl_right">Template by <a href="http://www.os-templates.com/" title="Free Website Templates">OS Templates |</a> Customized by: Farley A. Dizon Jr.</p>
  </div>
</div>
<%}%>
</body>
</html>

